//
//  GNMessageViewController.swift
//  SinaWeChat
//
//  Created by mac on 15/12/5.
//  Copyright © 2015年 mac. All rights reserved.
//

import UIKit

class GNMessageViewController: GNVistorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        //如果没有登录就设置访客视图的内容
        if !userLogin{
            
            vistorView?.setVistorInfo("visitordiscover_image_message", message: "登录后，别人评论你的微博，发给你的消息，都会在这里收到通知")
            
            return
            
        }
        

        setupUI()
    }

    private func setupUI(){
        
        navigationItem.leftBarButtonItem =  UIBarButtonItem(title: "发现群", target: self, action: "discoverGroup")
        
    }
    
    @objc private func discoverGroup(){
        
        print("discoverGroup")
        
        let vc = GNTempVc()
        
        navigationController?.pushViewController(vc, animated: true)
    }
}
